/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.viewer.dao;

import cn.mcsys.myadmin.common.persistence.annotation.MyBatisDao;
import cn.mcsys.myadmin.modules.viewer.entity.AirTickets;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 航展公司票务DAO接口
 * @author leopold
 * @version 2018-09-13
 */
@MyBatisDao
public interface AirTicketsDao{

    List<AirTickets> selectByTypeAndNumber(@Param("type") int type, @Param("number") String number);

    AirTickets selectByAirTickets(AirTickets airTickets);

    void  insert(AirTickets airTickets);

    List<AirTickets> selectTickets(@Param("begin") Date begin,@Param("end") Date end);

    List<AirTickets> selectAll(int pageNo);

    void UpdateExpiredTickets(List<Long> expiredETickets);

    void batchSaveTickets(List<AirTickets> airTicketsList);

    List<AirTickets> getAllTicketsToday();
}